package com.saikuo.service.dao;

import com.saikuo.service.model.User;
import com.saikuo.service.vo.UserAddressView;

import java.util.List;

/**
 * Created by shanchangyu on 16/10/14.
 */
public interface IUserDao {
    boolean register(String mobile, String password);

    boolean updatePassword(String mobile, String newPassword);

    boolean changePasswordByUid(int userId, String newPassword);

    String getPasswordByUid(int userId);

    User getUserByMobile(String mobile);

    User getUserByUserId(int userId);

    boolean mobileExist(String mobile);

    int addUserAddress(UserAddressView userAddressView);

    boolean updateUserAddress(int id, String mobile, String address, String name, Double lat, Double lng, String cityCode, String areaCode);

    UserAddressView getUserAddressById(int id);

    List<UserAddressView> getUserAddressByUserId(int userId);

    boolean deleteUserAddressById(int id);

    boolean createFeedBack(int userId, String message);

}
